import java.util.Scanner;

public class ariTicket {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int ariTicket = 5000;
        System.out.print("请输入出行的月份");
        int method = input.nextInt();
        if (method <= 4 && method <= 10) {
            System.out.print("请输入舱位：（头等舱，商务舱，经济舱）");
            String name = input.next();
            switch (name) {
                case "头等舱":
                    ariTicket *= 0.9;
                    break;
                case "商务舱":
                    ariTicket *= 0.8;
                    break;
                case "经济舱":
                    ariTicket *= 0.7;
                    break;
                default:
                    System.out.println("请输入正确的舱位");
            }
            System.out.println("你的机票价格为" + ariTicket);
        } else {
            System.out.print("请输入舱位：（头等舱，商务舱，经济舱）");
            String nameTwo = input.next();
            switch (nameTwo) {
                case "头等舱":
                    ariTicket *= 0.5;
                    break;
                case "商务舱":
                    ariTicket *= 0.4;
                    break;
                case "经济舱":
                    ariTicket *= 0.3;
                    break;
                default:
                    System.out.println("请输入正确的舱位");
            }
            System.out.println("你的机票价格为" + ariTicket);
        }
    }
}
